<?php
/**
 * 后台菜单配置
 *    'home' => [
 *       'name' => '首页',                // 菜单名称
 *       'icon' => 'icon-home',          // 图标 (class)
 *       'index' => 'index/index',         // 链接
 *     ],
 */
return [
    'index' => [
        'name' => '首页',
        'icon' => 'icon-home',
        'index' => 'index/index',
    ],
    'store' => [
        'name' => '管理员',
        'icon' => 'icon-guanliyuan',
        'index' => 'store.user/index',
        'submenu' => [
            [
                'name' => '管理员列表',
                'index' => 'store.user/index',
                'uris' => [
                    'store.user/index',
                    'store.user/add',
                    'store.user/edit',
                    'store.user/delete',
                ],
            ],
            [
                'name' => '角色管理',
                'index' => 'store.role/index',
                'uris' => [
                    'store.role/index',
                    'store.role/add',
                    'store.role/edit',
                    'store.role/delete',
                ],
            ],
        ]
    ],
    'scenic' => [
        'name' => '景点管理',
        'icon' => 'icon-shop',
        'index' => 'scenic/index',
        'submenu' => [
            [
                'name' => '景点管理',
                'active' => true,
                'index' => 'scenic/index',
                'submenu' => [
                    [
                        'name' => '景点列表',
                        'index' => 'scenic/index',
                        'uris' => [
                            'scenic/index',
                            'scenic/add',
                            'scenic/edit',
                        ]
                    ],
                    // [
                    //     'name' => '文章管理',
                    //     'index' => 'shop.clerk/index',
                    //     'uris' => [
                    //         'shop.clerk/index',
                    //         'shop.clerk/add',
                    //         'shop.clerk/edit',
                    //     ]
                    // ],
                ]
            ],
            [
                'name' => '门票管理',
                'index' => 'scenic.ticket/index',
            ]
        ]
    ],
    
    'content' => [
        'name' => '热门推荐',
        'icon' => 'icon-daohang',
        'index' => 'content.article/index',
        'submenu' => [
            [
                'name' => '热门管理',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '推荐列表',
                        'index' => 'content.article/index',
                        'uris' => [
                            'content.article/index',
                            // 'content.article/add',
                            // 'content.article/edit',
                        ]
                    ],
                    [
                        'name' => '美食',
                        'index' => 'content.article/food',
                        'uris' => [
                            'content.article/food',
                            // 'content.article/add',
                            // 'content.article/edit',
                        ]
                    ],
                    [
                        'name' => '民宿',
                        'index' => 'content.article/homestay',
                        'uris' => [
                            'content.article/homestay',
                            
                        ]
                    ],
                    [
                        'name' => '景点',
                        'index' => 'content.article/scenic',
                        'uris' => [
                            'content.article/scenic',
                            // 'content.article/add',
                            // 'content.article/edit',
                        ]
                    ],
                    
                ]
            ],
            [
                'name' => '热门分类',
                'index' => 'content.article.category/index',
                'uris' => [
                    'content.article.category/index',
                    'content.article.category/add',
                    'content.article.category/edit',
                ]
            ],
            // [
            //     'name' => '文件库管理',
            //     'submenu' => [
            //         [
            //             'name' => '文件分组',
            //             'index' => 'content.files.group/index',
            //             'uris' => [
            //                 'content.files.group/index',
            //                 'content.files.group/add',
            //                 'content.files.group/edit',
            //             ]
            //         ],
            //         [
            //             'name' => '文件列表',
            //             'index' => 'content.files/index'
            //         ],
            //         [
            //             'name' => '回收站',
            //             'index' => 'content.files/recycle',
            //         ],
            //     ]
            // ],
        ]
    ],

    'shop' => [
        'name' => '商户管理',
        'icon' => 'icon-mendian',
        'index' => 'shop.merchant/index',

        'submenu' => [
            [
                'name' => '商户列表',
                'index' => 'shop.merchant/index',
                'uris' => [
                    'shop.merchant/index',
                    'shop.merchant/add',
                    'shop.merchant/edit',
                    'shop.merchant/del',
                ],
            ],
            [
                'name' => '店员管理',
                'index' => 'shop.clerk/index',
                'uris' => [
                    'shop.clerk/index',
                    'shop.clerk/add',
                    'shop.clerk/edit',
                    'shop.clerk/del',
                ],
            ],
            [
                'name' => '核销记录列表',
                'index' => 'shop.writeoff/index',
                'uris' => [
                    'shop.writeOff/index',
                    'shop.writeOff/detail',
                ],
            ]
        ],
    ],
    'goods' => [
        'name' => '商品管理',
        'icon' => 'icon-goods',
        'index' => 'goods/index',
        'submenu' => [
            [
                'name' => '商品列表',
                'index' => 'goods/index',
                'uris' => [
                    'goods/index',
                    'goods/add',
                    'goods/edit',
                    'goods/copy'
                ],
            ],
            [
                'name' => '商品分类',
                'index' => 'goods.category/index',
                'uris' => [
                    'goods.category/index',
                    'goods.category/add',
                    'goods.category/edit',
                ],
            ],
            [
                'name' => '商品评价',
                'index' => 'goods.comment/index',
                'uris' => [
                    'goods.comment/index',
                    'goods.comment/detail',
                ],
            ]
        ],
    ],

    'orders' => [
        'name' => '订单管理',
        'icon' => 'icon-order',
        'index' => 'orders/index',
        'submenu' => [
            [
                'name' => '全部订单',
                'index' => 'orders/index',
            ],
            [
                'name' => '已下单 待支付',
                'index' => 'orders/pay',
            ],
            [
                'name' => '已支付 待核销',
                'index' => 'orders/inspect_list',
            ],
            [
                'name' => '已完成',
                'index' => 'orders/complete',
            ],
            [
                'name' => '已下单后取消',
                'index' => 'orders/cancelled',
            ],
            [
                'name' => '已支付后取消',
                'index' => 'orders/PaidCancellation',
            ],
        ]
    ],
    'merchant' => [
        'name' => '商户订单',
        'icon' => 'icon-order',
        'index' => 'Merchant/index',
        'submenu' => [
            [
                'name' => '全部订单',
                'index' => 'merchant/index',
            ],
            [
                'name' => '已支付 待核销',
                'index' => 'merchant/Write_off',
            ],
            [
                'name' => '已核销 待确认',
                'index' => 'merchant/confirm',
            ],
            [
                'name' => '已确认 待评价',
                'index' => 'merchant/evaluate',
            ],
            [
                'name' => '已评价 待完成',
                'index' => 'merchant/complete',
            ],
            [
                'name' => '已完成',
                'index' => 'merchant/end',
            ],
            [
                'name' => '已取消',
                'index' => 'merchant/cancel',
            ],
        ]
    ],
   'finance' => [
       'name' => '财务管理',
    //    'icon' => 'icon-grade-o',
       'icon' => 'icon-grade-o',
       'index' => 'finance/index',
       'submenu' => [
           [
               'name' => '统计图表',
               'index' => 'finance/index',
           ],                                     
        ]
    ],
    'user' => [
        'name' => '用户管理',
        'icon' => 'icon-user',
        'index' => 'user/index',
        'submenu' => [
            [
                'name' => '用户列表',
                'index' => 'user/index',
            ],
            [
                'name' => '会员等级',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '等级管理',
                        'index' => 'user.grade/index',
                        'uris' => [
                            'user.grade/index',
                            
                            'user.grade/edit',
                            'user.grade/delete',
                        ]
                    ],
                ]
            ],
            [
                'name' => '余额记录',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '充值记录',
                        'index' => 'user.recharge/order',
                    ],
                    [
                        'name' => '余额明细',
                        'index' => 'user.balance/log',
                    ],
                ]
            ],
        ]
    ],
    'market' => [
        'name' => '营销管理',
        'icon' => 'icon-marketing',
        'index' => 'market.coupon/index',
        'submenu' => [
            [
                'name' => '优惠券',
                'active' => true,
                'submenu' => [
                    [
                        'name' => '优惠券列表',
                        'index' => 'market.coupon/index',
                        'uris' => [
                            'market.coupon/index',
                            'market.coupon/add',
                            'market.coupon/edit',
                        ]
                    ],
                    [
                        'name' => '领取记录',
                        'index' => 'market.coupon/receive'
                    ],
                ]
            ],
            [
                'name' => '用户充值',
                'submenu' => [
                    [
                        'name' => '充值套餐',
                        'index' => 'market.recharge.plan/index',
                        'uris' => [
                            'market.recharge.plan/index',
                            'market.recharge.plan/add',
                            'market.recharge.plan/edit',
                        ]
                    ],
                    [
                        'name' => '充值设置',
                        'index' => 'market.recharge/setting'
                    ],
                ]
            ],
            [
                'name' => '积分管理',
                'submenu' => [
                    [
                        'name' => '积分设置',
                        'index' => 'market.points/setting'
                    ],
                    [
                        'name' => '积分明细',
                        'index' => 'market.points/log'
                    ],
                ]
            ],
            [
                'name' => '消息推送',
                'submenu' => [
                    [
                        'name' => '发送消息',
                        'index' => 'market.push/send',
                    ],
                    [
                        'name' => '活跃用户',
                        'index' => 'market.push/user',
                    ],
                   [
                       'name' => '发送日志',
                       'index' => 'market.push/log',
                   ],
                ]
            ],
            [
                'name' => '满额包邮',
                'index' => 'market.basic/full_free',
            ],
        ],
    ],
    'wxapp' => [
        'name' => '小程序',
        'icon' => 'icon-wxapp',
        'color' => '#36b313',
        'index' => 'wxapp/setting',
        'submenu' => [
            [
                'name' => '小程序设置',
                'index' => 'wxapp/setting',
            ],
            [
                'name' => '帮助中心',
                'index' => 'wxapp.help/index',
                'uris' => [
                    'wxapp.help/index',
                    'wxapp.help/add',
                    'wxapp.help/edit'
                ]
            ],
        ],
    ],
    // 'apps' => [
    //     'name' => '应用中心',
    //     'icon' => 'icon-application',
    //     'is_svg' => true,   // 多色图标
    //     'index' => 'apps.dealer.apply/index',
    //     'submenu' => [
    //         [
    //             'name' => '分销中心',
    //             'submenu' => [
    //                 [
    //                     'name' => '入驻申请',
    //                     'index' => 'apps.dealer.apply/index',
    //                 ],
    //                 [
    //                     'name' => '分销商用户',
    //                     'index' => 'apps.dealer.user/index',
    //                     'uris' => [
    //                         'apps.dealer.user/index',
    //                         'apps.dealer.user/fans',
    //                     ]
    //                 ],
    //                 [
    //                     'name' => '分销订单',
    //                     'index' => 'apps.dealer.order/index',
    //                 ],
    //                 [
    //                     'name' => '提现申请',
    //                     'index' => 'apps.dealer.withdraw/index',
    //                 ],
    //                 [
    //                     'name' => '分销设置',
    //                     'index' => 'apps.dealer.setting/index',
    //                 ],
    //                 [
    //                     'name' => '分销海报',
    //                     'index' => 'apps.dealer.setting/qrcode',
    //                 ],
    //             ]
    //         ],
    //         [
    //             'name' => '拼团管理',
    //             'submenu' => [
    //                 [
    //                     'name' => '商品分类',
    //                     'index' => 'apps.sharing.category/index',
    //                     'uris' => [
    //                         'apps.sharing.category/index',
    //                         'apps.sharing.category/add',
    //                         'apps.sharing.category/edit',
    //                     ]
    //                 ],
    //                 [
    //                     'name' => '商品列表',
    //                     'index' => 'apps.sharing.goods/index',
    //                     'uris' => [
    //                         'apps.sharing.goods/index',
    //                         'apps.sharing.goods/add',
    //                         'apps.sharing.goods/edit',
    //                         'apps.sharing.goods/copy',
    //                         'apps.sharing.goods/copy_master',
    //                     ]
    //                 ],
    //                 [
    //                     'name' => '拼单管理',
    //                     'index' => 'apps.sharing.active/index',
    //                     'uris' => [
    //                         'apps.sharing.active/index',
    //                         'apps.sharing.active/users',
    //                     ]
    //                 ],
    //                 [
    //                     'name' => '订单管理',
    //                     'index' => 'apps.sharing.order/index',
    //                     'uris' => [
    //                         'apps.sharing.order/index',
    //                         'apps.sharing.order/detail',
    //                         'apps.sharing.order.operate/batchdelivery'
    //                     ]
    //                 ],
    //                 [
    //                     'name' => '售后管理',
    //                     'index' => 'apps.sharing.order.refund/index',
    //                     'uris' => [
    //                         'apps.sharing.order.refund/index',
    //                         'apps.sharing.order.refund/detail',
    //                     ]
    //                 ],
    //                 [
    //                     'name' => '商品评价',
    //                     'index' => 'apps.sharing.comment/index',
    //                     'uris' => [
    //                         'apps.sharing.comment/index',
    //                         'apps.sharing.comment/detail',
    //                     ],
    //                 ],
    //                 [
    //                     'name' => '拼团设置',
    //                     'index' => 'apps.sharing.setting/index'
    //                 ]
    //             ]
    //         ],
    //         [
    //             'name' => '砍价活动',
    //             'index' => 'apps.bargain.active/index',
    //             'submenu' => [
    //                 [
    //                     'name' => '活动列表',
    //                     'index' => 'apps.bargain.active/index',
    //                     'uris' => [
    //                         'apps.bargain.active/index',
    //                         'apps.bargain.active/add',
    //                         'apps.bargain.active/edit',
    //                         'apps.bargain.active/delete',
    //                     ],
    //                 ],
    //                 [
    //                     'name' => '砍价记录',
    //                     'index' => 'apps.bargain.task/index',
    //                     'uris' => [
    //                         'apps.bargain.task/index',
    //                         'apps.bargain.task/add',
    //                         'apps.bargain.task/edit',
    //                         'apps.bargain.task/delete',
    //                         'apps.bargain.task/help',
    //                     ],
    //                 ],
    //                 [
    //                     'name' => '砍价设置',
    //                     'index' => 'apps.bargain.setting/index',
    //                 ]
    //             ]
    //         ],
    //         [
    //             'name' => '整点秒杀',
    //             'index' => 'apps.sharp.goods/index',
    //             'submenu' => [
    //                 [
    //                     'name' => '秒杀商品',
    //                     'index' => 'apps.sharp.goods/index',
    //                     'uris' => [
    //                         'apps.sharp.goods/index',
    //                         'apps.sharp.goods/add',
    //                         'apps.sharp.goods/select',
    //                         'apps.sharp.goods/edit',
    //                         'apps.sharp.goods/delete',
    //                     ],
    //                 ],
    //                 [
    //                     'name' => '活动会场',
    //                     'index' => 'apps.sharp.active/index',
    //                     'uris' => [
    //                         'apps.sharp.active/index',
    //                         'apps.sharp.active/add',
    //                         'apps.sharp.active/edit',
    //                         'apps.sharp.active/state',
    //                         'apps.sharp.active/delete',

    //                         'apps.sharp.active_time/index',
    //                         'apps.sharp.active_time/add',
    //                         'apps.sharp.active_time/edit',
    //                         'apps.sharp.active_time/state',
    //                         'apps.sharp.active_time/delete',
    //                     ],
    //                 ],
    //                 [
    //                     'name' => '基础设置',
    //                     'index' => 'apps.sharp.setting/index',
    //                 ]
    //             ]
    //         ],
    //         [
    //             'name' => '好物圈',
    //             'index' => 'apps.wow.order/index',
    //             'submenu' => [
    //                 [
    //                     'name' => '商品收藏',
    //                     'index' => 'apps.wow.shoping/index',
    //                 ],
    //                 [
    //                     'name' => '订单信息',
    //                     'index' => 'apps.wow.order/index',
    //                 ],
    //                 [
    //                     'name' => '基础设置',
    //                     'index' => 'apps.wow.setting/index',
    //                 ]
    //             ]
    //         ],
    //     ]
    // ],
    'setting' => [
        'name' => '设置',
        'icon' => 'icon-setting',
        'index' => 'setting/store',
        'submenu' => [
            [
                'name' => '商城设置',
                'index' => 'setting/store',
            ],
            [
                'name' => '交易设置',
                'index' => 'setting/trade',
            ],
            [
                'name' => '运费模板',
                'index' => 'setting.delivery/index',
                'uris' => [
                    'setting.delivery/index',
                    'setting.delivery/add',
                    'setting.delivery/edit',
                ],
            ],
            [
                'name' => '物流公司',
                'index' => 'setting.express/index',
                'uris' => [
                    'setting.express/index',
                    'setting.express/add',
                    'setting.express/edit',
                ],
            ],
            [
                'name' => '短信通知',
                'index' => 'setting/sms'
            ],
            [
                'name' => '模板消息',
                'index' => 'setting/tplmsg',
                'uris' => [
                    'setting/tplmsg',
                    'setting.help/tplmsg'

                ],
            ],
            [
                'name' => '退货地址',
                'index' => 'setting.address/index',
                'uris' => [
                    'setting.address/index',
                    'setting.address/add',
                    'setting.address/edit',
                ],
            ],
            [
                'name' => '上传设置',
                'index' => 'setting/storage',
            ],
            [
                'name' => '小票打印机',
                'submenu' => [
                    [
                        'name' => '打印机管理',
                        'index' => 'setting.printer/index',
                        'uris' => [
                            'setting.printer/index',
                            'setting.printer/add',
                            'setting.printer/edit'
                        ]
                    ],
                    [
                        'name' => '打印设置',
                        'index' => 'setting/printer'
                    ]
                ]
            ],
            [
                'name' => '其他',
                'submenu' => [
                    [
                        'name' => '清理缓存',
                        'index' => 'setting.cache/clear'
                    ]
                ]
            ]
        ],
    ],
];
